@layout("layouts.layout_admin")

@section("page_content")
	{{ Form::open_for_files("admin/node/add", "POST") }}
		<fieldset>
			<legend>CONTENT FORM</legend>
			<ul id="categoryFormTabs" class="nav nav-tabs">
				<li class="active"><a href="#content" data-toggle="tab">İçerik</a></li>
				<li><a href="#seo" data-toggle="tab">SEO Bilgileri</a></li>
				<li><a href="#settings" data-toggle="tab">İçerik Ayarları</a></li>				
				<li><a href="#parent" data-toggle="tab">Üst İçerik</a></li>
				<li><a href="#gallery" data-toggle="tab">Resimler</a></li>				
			</ul>	
			
			<div id="categoryFormTabContents" class="tab-content">
				<div class="tab-pane fade in active" id="content">					
					{{ Bootstrap::form_text("tr_title", "Kategori Adı", Input::old("title", $defaults['title'])) }}
					{{ Bootstrap::form_textarea("tr_body", "Kategori Açıklaması", Input::old("body", $defaults['body']))}}
					{{ Bootstrap::form_text("tr_clean_url", "URL Yolu", Input::old("clean_url", $defaults['clean_url'])) }}
				</div>
				<div class="tab-pane fade in" id="seo">
					{{ Bootstrap::form_text("focused", "Anahtar Kelime", Input::old("focused", $defaults['focused'])) }}
			
					{{ Bootstrap::form_text("page_title", "Sayfa Başlığı", Input::old("page_title", $defaults['page_title']),"", 70) }}
					{{ Bootstrap::form_textarea("description", "Sayfa Açıklaması", Input::old("description", $defaults['description']),"", 156) }}
					
					<div id="tr_preview" class="well">
						GOOGLE PREVIEW:<br>
						<a class="preview_title" href="#" style="text-decoration:underline; ">Sayfa Başlığı</a><br>
						<a href="#" class="preview_link" style="font-size: 13px; color: #282; line-height: 15px;" class="url">
							www.trors.com/category/<span class="preview_url">url</span>
						</a>
						<p class="desc" style="font-size: 13px; color: #000; line-height: 15px;">
							<span class="preview_description" style="color: rgb(0, 0, 0);">AÇIKLAMA
							</span>
						</p>
					</div>					
				</div>
				<div class="tab-pane fade in" id="settings">
					<div class="control-group">
						<label class="control-label" for="language">İçerik Dili</label>
						<div class="controls">										
							{{ Form::select('language', array('tr' => 'Türkçe', 'en' => 'English'), 'tr') }}
						</div><!-- /.controls -->
					</div><!-- /.control-group -->	
						
					<div class="control-group">
						<label class="control-label" for="type">İçerik Türü</label>
						<div class="controls">										
							{{ Form::select('type', array('category' => 'Kategori', 'flat' => 'Daire', 'image' => 'Resim', 'video' => 'Video'), 'category') }}
						</div><!-- /.controls -->
					</div><!-- /.control-group -->									
				</div>
				
				<div class="tab-pane fade in" id="parent">
					@include("fields.field_parent_category")
				</div>      
				<div class="tab-pane fade in" id="gallery">
					GALLERY
				</div>    
			</div><!-- /.tab-content -->				
	

		</fieldset>
	{{ Form::close() }}
@endsection
